<?php
use yii\helpers\Html;
use yii\widgets\ListView;
?>
<?=ListView::widget([
    'dataProvider' => $dataProvider,
    'itemView' => '_post',
]);?>